package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author:Domen
 * @Date:2023/11/8 15:23
 */

@Data

public class Admin {
    private Integer id;
    private String username;
    private String phone;
    private String email;
    //时间格式一般是前端处理，这里为了方便在后端处理了
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8")
    private Date updateTime;
    private String password;
    private boolean status;

}
